package com.quiz.bis.domain.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.quiz.bis.domain.vo.BisPaperQuestionVo;
import com.quiz.common.core.domain.BaseModel;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

/**
 * 试卷实体类
 *
 * @author ahuan
 */
@Data
@TableName("bis_papers")
@EqualsAndHashCode(callSuper = true)
public class BisPapers extends BaseModel {

    @TableId(type = IdType.AUTO)
    private Long paperId;

    @TableField("paper_name")
    private String paperName;

    @TableField("description")
    private String description;

    @TableField("total_score")
    private Integer totalScore;

    @TableField("pass_score")
    private Integer passScore;

    @TableField("status")
    private String status;

    @TableField("question_sum")
    private Integer questionSum;

    @TableField(exist = false)
    private List<BisPaperQuestionVo> paperQuestionList;

}
